#ifndef RS485_H
#define RS485_H

#include "bspUsart.h"

typedef enum _RS485_MODE{
	RS485_TX=0,
	RS485_RX
}RS485_MODE;


void Rs485Init(u32 baudrate);

void Rs485SetMode(RS485_MODE mode);

void Rs485Send(const char* data, u32 size);

void Rs485Send_u16(const u16* data, u32 size);

u32 Rs485Receive(void** pBuffer);

#endif
